package com.inspur.cloud.demo.repository;

import com.inspur.cloud.demo.entity.Zeppelin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ZeppelinRespository extends JpaRepository<Zeppelin, String> {

    Zeppelin findByVersion(String version);
    @Query(value = "select t from Zeppelin t")
    List<Zeppelin> getZeppelin();
}